From 98c075c8048f38f570c7058ded8eb68f36ef2816 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Thu, 26 Oct 2006 11:50:17 +0100 Subject: [PATCH] [NET] back: Advertise that we do not support rx-flip path any more. This will now be used only by older guests who do not understand the feature-rx-{copy,flip} feature flags. Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c index b81042d701..7d301965f4 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c +++ b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c @@ -93,10 +93,22 @@ static int netback_probe(struct xenbus_device *dev, goto abort_transaction; } + /* We support rx-copy path. */ err = xenbus_printf(xbt, dev->nodename, "feature-rx-copy", "%d", 1); if (err) { - message = "writing feature-copying"; + message = "writing feature-rx-copy"; + goto abort_transaction; + } + + /* + * We don't support rx-flip path (except old guests who don't + * grok this feature flag). + */ + err = xenbus_printf(xbt, dev->nodename, + "feature-rx-flip", "%d", 0); + if (err) { + message = "writing feature-rx-flip"; goto abort_transaction; } -- 2.30.2